package gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;

public class EnterListener implements ActionListener {

    //The button for this listener to click
    private JButton myButton;
    
    public EnterListener(JButton myButton) {
	this.myButton=myButton;
    }
    @Override
    public void actionPerformed(ActionEvent arg0) {
	myButton.doClick();
    }

}
